home *** CD-ROM | disk | FTP | other *** search
/ Aminet 30 / Aminet 30 (1999)(Schatztruhe)[!][Apr 1999].iso / Aminet / game / shoot / Heretic.lha / Heretic / c2p / c2p_skeleton.s < prev   
Text File  |  1999-02-15  |  1KB  |  51 lines

  1. ;This is skeleton for external c2p modules
  2. ;3 functions must be provided:
  3. ; C2P_Init
  4. ; C2P_CleanUp
  5. ; C2P_Do
  6. ;
  7.  
  8. ; this in plugin module, cannot be started as any other program
  9.         moveq   #0,d0
  10.         rts
  11.  
  12. ; Do not change this:
  13.  
  14.         dc.b    "C2P",0                 ;module id, MUST BE 'C2P'!!!
  15.         dc.l    C2P_Init                ; pointer to init routine
  16.         dc.l    C2P_CleanUp             ;pointer to de-init routine
  17.         dc.l    C2P_Do                  ;pointer to main c2p function
  18.         dc.l    0
  19.  
  20.         cnop    0,4
  21. C2P_Init
  22. ; Here you can do all initializations needed by yours c2p
  23. ; In:
  24. ;  d0.l SCREENWIDTH
  25. ;  d1.l SCREENHEIGHT
  26. ; Out:
  27. ;  0  - something went wrong
  28. ;  1  - Init ok, C2P supports every resolution
  29. ;  2  - Init ok, C2P supports only 320x200 resolution.
  30.  
  31.         rts
  32.  
  33.         cnop    0,4
  34. C2P_CleanUp
  35. ; Here you should clean all things you have made in C2P_Init 
  36. ; (like freeing memory, etc.)
  37.  
  38.         rts
  39.  
  40.         cnop    0,4
  41. C2P_Do
  42. ;Core c2p routine.
  43. ;
  44. ; In:
  45. ;  a0.l - pointer to chunky in fastmem. (SCREENWIDTH*SCREENHEIGHT)
  46. ;  a1.l - pointer to INTERLEAVED bitplanes
  47. ; Out:
  48. ;  None
  49.  
  50.         rts
  51.